#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a,b,sum=0,d=1;
	for (a = 1; a <= 10; a++)
	{
		for (b = 1; b <= a; b++)
		{
			d *= b;
		}
		sum += d;
		d = 1;
	}
	printf("%d", sum);
}
